package com.ny.mapper;

import com.ny.entity.Reservations;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReservationMapper {
    void addReservation(Reservations reservation);
    List<Reservations> findAllReservations();
    void updateReservationStatus(@Param("reservationId") int reservationId, @Param("status") String status, @Param("rejectReason") String rejectReason);


    // 根据用户ID查询该用户的预约记录
    List<Reservations> findUserReservations(@Param("userId") int userId);
}
